* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../picture/标题底图.png') repeat;
    min-height: 100vh;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

/* 外层容器 */
.container {
    max-width: 1920px;
    height: 100vh;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

/* 顶部状态栏 */
.status-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;

    min-height: 80px;  /* 最小高度保障 */
    height: auto;      /* 按视口比例调整 */
    padding: 8px 15px; /* 调整内边距 */

    flex: 0 0 9%; /* 固定高度占比 */

}

.status-item {
    padding: 0 20px;
    border-radius: 10px;
    /* box-shadow: 0 0 20px rgba(0, 119, 182, 0.3); */
}

.status-1 { flex: 2;}
.status-2 { flex: 5;}
.status-3 { 
    flex: 3;
    display: flex;
    align-items: center; /* 实现垂直居中 */
}



.sub-status {
    flex: 1;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sub-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;  /* 新增 */
    transition: all 0.3s;  /* 可选：添加悬停动画 */
}

/* 可选：添加悬停效果 */
.sub-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* 添加按钮激活状态样式 */
.sub-item .sub-value.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    font-weight: bold;
    position: relative;
}

.sub-item .sub-value.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 2px;
}

.sub-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #90e0ef;
    text-shadow: 0 0 8px rgba(144, 224, 239, 0.6);
}

.status-3 {
    display: flex;           /* 启用 Flex 布局 */
    gap: 15px;              /* 列间距 */
    padding: 15px !important;
}

.status3-left {
    flex: 1;                /* 左侧占 1 份 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 2px solid rgba(255,255,255,0.2);
    padding-right: 15px;
}

.status3-right {
    flex: 1.5;                /* 右侧占 2 份 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;           /* 继承父级高度 */
    min-height: 80px;
}

/* 右侧进度条样式 */
.status-progress {
    /* background: rgba(255,255,255,0.1); */
    height: auto; /* 移除固定高度 */
    border-radius: 4px;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center;     /* 水平居中 */
    flex: 1;                /* 填充可用空间 */
    margin: 0;              /* 移除外边距 */
}

#realTimeClock {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    gap: 5px;
    margin-top: 4px;        /* 增加上下间距 */
    padding: 5px 0;         /* 添加内边距 */

}


/* 主内容区 */
.main-content {
    display: flex;
    gap: 20px;
    flex: 1; /* 占据剩余空间 */
    min-height: 0; /* 允许内容压缩 */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 左侧主区域 */
.left-panel {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 左侧上半部分 */
.top-section {
    flex: 2;
    display: flex;
    gap: 15px;
}

/* 左侧上半部的左区块 */
.left-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 三级嵌套区块 */
.sub-section {
    flex: 1;
    background: rgba(0, 40, 85, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 119, 182, 0.3);
}

/* 左侧上半部的右区块 */
.right-top {
    flex: 2;
    border-radius: 15px;
    padding: 20px;
}

/* 左侧下半部分 */
.bottom-section {
    flex: 1;
    background: rgba(9, 29, 56, 0.8);
    border-radius: 15px;
    padding: 20px;
}

/* 右侧边栏 */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 右侧三个等分区块 */
.right-block {
    flex: 1;
    background: rgba(0, 53, 102, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 150, 199, 0.3);
}

/* 图表容器 */
.chart-container {
    height: calc(100% - 40px); /* 动态高度 */
    margin: 0px 0;
}

.chart-container-knowledgemap {
    height: calc(100% - 20px);
    margin: 0px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .status-bar,
    .main-content,
    .top-section {
        flex-direction: column;
    }

    .sub-section,
    .right-block {
        min-height: 200px;
    }

    .container {
        padding: 10px;
    }
}

/* 文字样式 */
h2 {
    color: #90e0ef;
    margin-bottom: 0px;
}

.glow-text {
    text-shadow: 0 0 10px rgba(144, 224, 239, 0.8);
}

/* 时钟样式 */
#realTimeClock {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    gap: 5px;
}

.time-colon {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 日期容器样式 */
.date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;     /* 减少间距 */
    font-size: 1.3em;
    color: rgba(255,255,255,0.9);
    gap: 8px; /* 添加间隙替代padding */
    white-space: nowrap; /* 禁止换行 */
    text-shadow: 0 0 8px rgba(144,224,239,0.6);
}

/* 日期样式 */
.date {
    flex: 2;
    text-align: left;
    padding-right: 10px;
}

/* 星期样式 */
.weekday {
    flex: 1;
    text-align: right;
    background: rgba(144,224,239,0.15);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* 时间数字增强样式 */
.time-hour, 
.time-minute, 
.time-second {
    background: linear-gradient(45deg, 
        rgba(144,224,239,0.15) 0%, 
        rgba(0,119,182,0.25) 100%
    );
    border: 1px solid rgba(144,224,239,0.3);
    box-shadow: 0 0 12px rgba(144,224,239,0.2);
}

/* 班级情况样式 */
.gender-section, .exam-section {
    display: flex;
    align-items: center;
    height: 90%;
    padding: 10px 0;
}

.gender-info, .exam-info {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.gender-item, .exam-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
}

.gender-icon, .exam-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.gender-count, .exam-count {
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(144,224,239,0.6);
}

.male { color: #00b4d8; }
.female { color: #ff69b4; }
.complete { color: #32CD32; }
.incomplete { color: #FF4500; }

/* 排行榜卡片样式 */
.rank-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.3s;
}
.rank-card:hover {
    transform: translateX(5px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    background: #002855;
    width: 80%;
    height: 80%;
    margin: 2% auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.rank-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 90%;
}

/* 排名项样式 */
.rank-item {
    padding: 10px;
    margin: 5px 0;
}
.rank-1 { font-size: 24px; color: #FFD700; }
.rank-2 { font-size: 18px; color: #C0C0C0; }
.rank-3 { font-size: 16px; color: #CD7F32; }
.rank-other { font-size: 14px; }

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #90e0ef;
    margin-right: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.gold-medal {
    color: #FFD700;
    margin-right: 8px;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* 调整雷达图容器 */
#practiceChart {
    height: 100% !important; /* 强制填充容器 */
}

/* 增强标签可读性 */
.echarts-radar-axis-name {
    text-shadow: 0 0 5px rgba(0,180,216,0.5);
}

/* 数值光效增强 */
#scoreChart .echarts-gauge-value {
    text-shadow: 0 0 15px rgba(144,224,239,0.7);
}




/* 模态框样式 */
#progressDetailModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#progressDetailModal .modal-content {
    background: #002855;
    width: 90%;
    height: 90%;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#progressDetailModal .close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    color: #90e0ef;
    cursor: pointer;
    z-index: 1001;
}

/* 三部分布局 */
.modal-top-section {
    flex: 3;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-middle-section {
    flex: 4;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-bottom-section {
    flex: 3;
}

/* 饼图容器 */
.pie-chart-container {
    flex: 1;
    background: rgba(0, 40, 85, 0.8);
    border-radius: 10px;
    padding: 10px;
}

/* 柱状图容器 */
.bar-chart-container {
    flex: 2;
    background: rgba(9, 29, 56, 0.8);
    border-radius: 10px;
    padding: 10px;
}

/* 雷达图容器 */
.radar-chart-container {
    flex: 4;
    background: rgba(0, 53, 102, 0.8);
    border-radius: 10px;
    padding: 10px;
}

/* 图表容器调整 */
#progressDetailModal .chart-container {
    height: 100%;
    width: 100%;
}

/* 学生信息卡片样式 */
.student-info-card {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    align-items: center;
}

.student-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 2px solid #00b4d8;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 1.2em;
}

.detail-item i {
    width: 30px;
    color: #90e0ef;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(144, 224, 239, 0.6);
}

.detail-item span {
    flex: 1;
}

/* 添加动态内容容器样式 */
#score-improvement-container {
    background: rgba(0, 53, 102, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 150, 199, 0.5);
    margin-top: 10px;
}